package net.xdclass.reflect;

/**
 * @author zhaowei
 * @Description TODO
 * @Remark 有问题直接联系我
 * @Version 1.0
 **/
public class User extends Base{


    public int age;

    private String name;

    private User(){

    }



    private String say(String name){
        System.out.println("我是"+name+",这个bug不是我写");
        return name;
    }


    private int say(int age){
        System.out.println("我的年龄age="+age+",准备找老婆了");
        return age;
    }

    private static void sleep(String name){
        System.out.println("我是"+name+",准备睡觉了");
    }



    public User(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public User(int age) {
        this.age = age;
    }

    private User(String name) {
        this.name = name;
    }

    private int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}

